class CreateEntries < ActiveRecord::Migration
  def self.up
    create_table :entries do |t|
      t.column :user_id, :integer
      t.column :title, :string
      t.column :kicker, :string
      t.column :author_name, :string
      t.column :summary, :text
      t.column :body, :text
      t.column :permalink, :string
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :published_at, :datetime
      t.column :active, :boolean, :default => true
      t.column :version, :integer
    end
  end

  def self.down
    drop_table :entries
  end
end
